import { AnnoRoutes } from "./../Anno/route";
import { AdviseRoutes } from "../Advise/route";
import { UserRoutes } from "../User/route";
import { HealthRoutes } from "../Health/route";
import { ShopRoutes } from "../Shop/route";
import { RolesRoute } from "../Roles/route";

export const MainRoutes = [
  {
    path: "/main",
    name: "main",
    component: () => import("./Main.vue"),
    redirect: "/home",
    children: [
      {
        path: "/home", //主页
        name: "home",
        component: () => import("../Home/Home.vue"),
      },
      ...AdviseRoutes, //意见
      ...AnnoRoutes,  //公告
      ...UserRoutes,  //用户
      ...HealthRoutes,//健康
      ...ShopRoutes,//商城
      ...RolesRoute,//权限
      
      {
        path: "/mine", //我的
        name: "mine",
        component: () => import("../Mine/Mine.vue"),
      },
    ],
  },
];
